watermark placement. Click "OK" when you are finished adding.
Step five : Select the output format mpg. Click on the position on the arrow below, on the pop-up formatting options, select the "Common Video" item, and then select mov on the right to convert the MPG into the MPG output format.
Step Six: output
(); return true;} catch (Exception e) {e. printStackTrace (); return false ;}} Private boolean process () {int type = checkContentType (); boolean status = false; if (type = 0) {// status = processFLV (PATH ); // directly convert the file to the flv File status = processFLV (PATH);} else if (type = 1) {String avifilepath = processAVI (type); if (avifilepath = null) returnfalse; // The avi file does not get
" test.jpg "
-SS followed by time in seconds
****************
4. Create a class
[Java]View plaincopy
Public class convertvideo
{
Private Static string input_path;
Private Static string output_path;
Private Static string project_path;
Private Static hashmap
Static
{
Filetype = new hashmap
Filetype. Put ("Avi", "true ");
Filetype. Put ("MPG", "true ");
Filetype. Put ("WMV", "true ");
Filetype. Put ("3GP", "true ");
Filetype. Put
This series of articles navigation
Quick Start for ffmpeg under Windows
FFmpeg parameter explanation
MEncoder and FFmpeg parameter detailed (Java processing video)
Java generated video thumbnails (ffmpeg)
Using FFmpeg to convert video files into FLV finishing
Java Video processing MEncoder
Java Video Processing Ffmped+mencoder
1, first download ffmpeg
2, extract the extracted ffmpeg.exe and PthreadGC2.dll
Video refers to a series of static images continuous image changes per second more than 24 frames (frame) screen above, according to the principle of visual persistence, the human eye can not identify a single static picture; Looks like a smooth, continuous visual effect. Today we are going to talk about how to convert the video format, the following will use the video converter, the small part of the recommended is a quick Video converter , see below
add the mplayer.exe‑path, which is also the path of mencoder.exe to the environment variable path.
Now you can try playing a video with Mplayer. For example, a video is located at D: \ music \ APerfectMatch. wmv, you can open a cmd window and enter mplayer "D: \ music \ APerfectMatch. wmv ", feel the player from Linux, you can use the keyboard to manipulate it.
Mencoder:
For example, convert a variety of formats to the
The first three articles have explained in detail how to convert the WAV audio format to the FLV format. This article describes how to convert the last part, first, the AMR is converted into WAV format, and then the WAV format is encapsulated
FLV format. The key part of this article is the part in the while loop. The o
A compact software used to convert the FLV format to the AVI format. You do not need to install it. After decompression, you can directly run the software that currently converts the FLV format to the AVI format.
Riva FLV encoder is the most famous one, but it does not have a Chinese version yet, the file size is al
Recently, due to the need to convert some videos from the FLV format to the AVI format, I wrote the following script to automate the conversion:
#! /Bin/bashffcmd = '/cygdrive/C/work-DIR/FFMPEG/ffmpeg.exe' # path to ffmpe tools # Check output directory existif! Test-d $2; then mkdir $ 2FI # Convert FLV to avifor F in
Copy CodeThe code is as follows:
Define ("Root_dir", DirName (__file__));
Class Ecodeflv {
var $fromFile; The papers that came on
var $toFilePath; Save File path
var $toPicPath; Save Picture Path
var $mpeg; Path to the Ffmpeg.exe file
var $mencode; Path to the Mencode.exe file
var $cmdToFile; Convert File command
var $cmdToPic; Convert Picture command
var $toFileName; The converted file name
var $mpegComm;
Copy Code code as follows:
?
Define ("Root_dir", DirName (__file__));
Class Ecodeflv {
var $fromFile; The papers that came on
var $toFilePath; Save File path
var $toPicPath; Save Picture Path
var $mpeg; Path to Ffmpeg.exe file
var $mencode; Path to Mencode.exe file
var $cmdToFile; Convert File command
var $cmdToPic; Convert Picture command
var $toFileName; The converted FileName
var $mpegCom
With the increasing popularity of the FLV format, more and more places are using this format, which is small and the biggest advantage, but the problem is, if you want to convert other video formats to the FLV format, isn't it a headache.
When you see this articleArticleYes, you must be worried about how to convert t
This article describes how to use codeigniter to upload a video and convert ffmpeg to flv. For more information, see
The Code is as follows:
$ File = 'video _ file ';$ Config ['upload _ path'] = './video_folder /';$ Config ['allowed _ types'] = 'mov | mpeg | mp3 | avi ';$ Config ['max _ size'] = '000000 ';$ Config ['max _ width'] = '';$ Config ['max _ height'] = '';
$ This-> upload-> initialize ($ config
Convert any video format into flv code using php. Copy the code as follows :? Define (ROOT_DIR, dirname (_ FILE _); classEcodeFlv {var $ fromFile; uploaded FILE var $ toFilePath; save FILE path var $ toPicPath; save
The code is as follows:
Define ("ROOT_DIR", dirname (_ FILE __));Class EcodeFlv {Var $ fromFile; // uploaded FileVar $ toFilePath; // Save the file pathVar $ toPicPath; // save the image pat
A compact for the FLV format to convert to AVI format software, no installation, decompression can directly run the current format of the FLV movie to AVI format software is not many
Riva FLV Encoder is the most famous one, but it has no Chinese version, the file volume is also large, installation package on the 4.7M
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.